import request from '@/utils/request';

// 获得账单状态类型
export async function getBillState(params) {
  return request(`/nsApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: params,
  });
}

// 获得接单方
export async function getReceive(params) {
  return request(`/nsApi/supplier/querySuppList`, {
    method: 'POST',
    body: params,
  });
}

// 付费列表
export async function getList(params) {
  return request(`/nsApi/nsBillPay/getList`, {
    method: 'POST',
    body: params,
  });
}

// 付费详情
export async function getPayBillDetail(params) {
  return request(`/nsApi/nsBillPay/getBillInfo`, {
    method: 'POST',
    body: params,
  });
}

// 详情列表
export async function getDetailList(params) {
  return request(`/nsApi/nsBillPay/empBillList`, {
    method: 'POST',
    body: params,
  });
}

// 拒绝
export async function refuseStatus(params) {
  return request(`/nsApi/nsBillPay/refuseStatus`, {
    method: 'POST',
    body: params,
  });
}

// 确认
export async function confirmStatus(params) {
  return request(`/nsApi/nsBillPay/confirmStatus`, {
    method: 'POST',
    body: params,
  });
}

export async function markPay(params) {
  return request('/nsApi/nsBillPay/updateChrgState', {
    method: 'POST',
    body: params,
  });
}
// 账单单个下载
export async function singleExportFile(params) {
  return request('/nsApi/nsBillPay/downSingleBillDet', {
    method: 'POST',
    body: params,
  });
}
// 账单合并下载
export async function mergeExportFile(params) {
  return request('/nsApi/nsBillPay/downMergeBillDet', {
    method: 'POST',
    body: params,
  });
}
// 全国 付费账单下载
export async function getUploadFile(params) {
  return request('/nsApi/nsBillPay/queryFileId', {
    method: 'POST',
    body: params,
  });
}
